package com.ocom.jobhandler.feign;

import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.resp.RespMachMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "srvpaccess")
public interface SrvpAccessFeignService {

    //
    @PostMapping(SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getMJMkm)
    public RespMachMessage getMJMkm(@RequestParam("hourTime") String hourTime);

    //
    @PostMapping(SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getMachNumsByReginId)
    public RespMachMessage getMachNumsByReginId(@RequestParam("comId") Long comId,@RequestParam("regionId") Integer regionId,@RequestParam("areaId") Integer areaId);

    @PostMapping(SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getPersonnelInfo)
    public RespMachMessage getPersonnelInfo(@RequestParam("comId") Long comId,@RequestParam("deviceNums") Integer deviceNums);
}
